﻿using System;
using System.Collections.Generic;
using System.Text;
using Messenia.BusinessModels;
using FluentNHibernate.Mapping;
using Messenia.BusinessModels.Models;

namespace Messenia.Data.Hibernate.Map {
    public class ProjectGroupMap: ClassMap<ProjectGroup> {
        public ProjectGroupMap() {
            Table("projectgroups");
            Id(x => x.GroupProjectId , "ProjectGroups_ID");
            References(x => x.Group , "Group_ID");
            References(x => x.Project , "Project_ID");
        }
    }
}
